package com.wl4837;

public class ConcreteStateA implements State {

    @Override
    public void handle(Context context) {
        System.out.println("Handling State A");
        // 修改上下文状态（可选）
        context.setState(new ConcreteStateB());
    }

}

